<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include("../models/webconfig.php");
include("../models/class.connection.php");
include("../models/entities/class.OrderEntity.php");
include("../models/repositories/class.OrderRepository.php");
$orderRepository = new OrderRepository();

if(isset($_POST['id'])){
    if($orderRepository->DeleteOrder($_POST['id'])){
        echo "1";
    }else{
        echo "0";
    }
}
?>
